package controllerInterfaces;

import java.util.List;

import modelInterfaces.ITest;

/**
 * 
 * @author Andy Cullache
 *
 */
public interface IControllerSaveTestResult {
	
	/**
	* Returns the list of available tests, corresponds to the same list that appears in the benchmark panel.
	* 
	* @return      list of available tests.
	*/
	public List<ITest> getTests();
	
	/**
	* Establishing the list of tests from the project to this controller.
	* 
	* @param      tests list from current project.
	*/
	public void setTests(List<ITest> tests);
	
	/**
	* Opens a view to set the directory and name of the tests CSV file.
	* 
	* @return      a set of "String" size 2, contains the name and path of the CSV file.
	*/
	public String[] selectDirectory();
	
	/**
	* Opens a view to set the directory and name of the tests CSV file.
	* 
	* @param      test containing the results to save.
	* @return      True if file is written, false otherwise.
	*/
	public boolean writeTest (ITest test);

}
